import request from '@/utils/request'

// 查询客户端-意见反馈列表
export function listFeedbackBase(query) {
  return request({
    url: '/base/feedbackBase/list',
    method: 'get',
    params: query
  })
}

// 查询客户端-意见反馈详细
export function getFeedbackBase(id) {
  return request({
    url: '/base/feedbackBase/' + id,
    method: 'get'
  })
}

// 保存客户端-意见反馈
export function saveFeedbackBase(data) {
  return request({
    url: '/base/feedbackBase/save',
    method: 'post',
    data: data
  })
}

// 删除客户端-意见反馈
export function delFeedbackBase(id) {
  return request({
    url: '/base/feedbackBase/' + id,
    method: 'delete'
  })
}

// 导出客户端-意见反馈
export function exportFeedbackBase(query) {
  return request({
    url: '/base/feedbackBase/export',
    method: 'get',
    params: query
  })
}
// 关闭工单
export function closeFeedbackBase(id) {
  return request({
    url: '/base/feedbackBase/close/' + id,
    method: 'get'
  })
}
// 查询工单状态
export function findWorkStatus(id) {
  return request({
    url: '/feedback/manage/getStatus/' + id,
    method: 'get'
  })
}
// 客户端处理工单
export function workClientFeedbackManager(data) {
  return request({
    url: '/base/feedbackBase/clientRevert',
    method: 'post',
    data: data
  })
}
// 查询发送的消息
export function findMessageById(id) {
  return request({
      url: '/manager/feedbackManager/listDetails?id=' + id,
      method: 'get'
  })
}
